# 列表遍历  while循环 下标
list1 = ['python', 'java', 'javascript', 'golang', 'c++', '1', 'aa', 'bb', 'cc']
# print(list1[0])
# print(list1[3])
# print(list1[5])

# 循环次数, 静态的数字
# i = 0
# while i < 9:
#     print(list1[i])
#     i += 1


# 获取列表的长度
# print(len(list1))
i = 0
while i < len(list1):
    print(list1[i])
    i += 1







